package com.zyl.blog.rbac.config;

import cn.dev33.satoken.log.SaLog;
import com.zyl.blog.common.utils.Extreme.LogUtil;
import org.springframework.stereotype.Component;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog_Server
 * @Package: com.zyl.blog.rbac.config
 * @ClassName: SaLogForUtils
 * @Description: TODO(日志工具类)
 * @Author FinalFantasy
 * @Date 2025/8/19-10:57
 */
@Component
public class SaLogForUtils implements SaLog {
    @Override
    public void trace(String s, Object... objects) {
        LogUtil.trace(s, objects);
    }

    @Override
    public void debug(String s, Object... objects) {
        LogUtil.debug(s, objects);
    }

    @Override
    public void info(String s, Object... objects) {
        LogUtil.info(s, objects);
    }

    @Override
    public void warn(String s, Object... objects) {
        LogUtil.warn(s, objects);
    }

    @Override
    public void error(String s, Object... objects) {
        LogUtil.error(s, null, objects);
    }

    @Override
    public void fatal(String s, Object... objects) {
        LogUtil.error(s, null, objects);
    }
}
